      <!-- $Id: page.htm $ -->
<{if $pager}>      
      <div id="turn-page">
        总计 <span id="totalRecords"><{$pager.total_count}></span>
        个记录,分为<span id="totalPages"><{$pager.total_page}></span>
        页,当前第 <span id="pageCurrent"><{$pager.current_page}></span>
        页(每页<{$pager.page_size}>条)
        <span id="page-link">
          <a href="<{spUrl c=main a=index page=$pager.first_page}>">首页</a>
          <a href="<{spUrl c=main a=index page=$pager.prev_page}>">上一页</a>
<{foreach from=$pager.all_pages item=thepage}>
	<{if $thepage != $pager.current_page}>
		<a href="<{spUrl c=main a=index page=$thepage}>"><{$thepage}></a>
	<{else}>
		<b><{$thepage}></b>
	<{/if}>
<{/foreach}>
          <a href="<{spUrl c=main a=index page=$pager.next_page}>">下一页</a>
          <a href="<{spUrl c=main a=index page=$pager.last_page}>">末页</a>
          <select id="gotoPage" onchange="listTable.gotoPage(this.value)">
<{foreach from=$pager.all_pages item=thepage}>
	<{if $thepage != $pager.current_page}>
	 <option value='<{$thepage}>'><{$thepage}></option> 
	<{else}>
	 <option value='<{$thepage}>' selected><{$thepage}></option> 
	<{/if}>
<{/foreach}>
          </select>
        </span>
      </div>
  <{/if}>  